package com.itkjb.leisurely.resource.sys.model.dto;

import com.itkjb.leisurely.core.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * Copyright (C), 2021-2099
 *
 * @Author: lix
 * @Date: 2021/4/19 10:32 上午
 * @Description: 角色用户 搜索模类
 * @Version: V1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="角色用户 搜索模", description="系统角色用户")
public class SysRoleUserDTO extends BaseModel {
    private static final long serialVersionUID = 8020818019936591256L;
    /**
     * 角色代码
     */
    @ApiModelProperty(value = "角色编码")
    @NotNull(message = "请指定查询角色")
    private String code;
    /**
     * 系统用户
     */
    @ApiModelProperty(value = "用户名或姓名")
    private String userName;
}
